import React, { Component } from 'react'
import Pubsub from 'pubsub-js'
import './start.css'
import startImg from '../../static/image/Entry.png'

export default class Start extends Component {
    state = {isStart:false}
    ToWeather = ()=>{
        this.setState({
            isStart:true
        })
        Pubsub.publish('start',true)
    }
    render() {
        return (
            <div className="start" style={{display:this.state.isStart?'none':'block'}}>
                <div className="btnStart" onClick={this.ToWeather}>
                  <img src={startImg} alt="" />
                </div>
               
            </div>
        )
    }
}
